package com.wiloon.javax.tmp.itext;

import java.util.ArrayList;
import java.util.List;

public class Annotation {
    String index;
    String user;
    String time;
    String comment;
    String id;
    String content;
    int page;
    List<Annotation> replys = new ArrayList<>();

    public void addReply(Annotation annotation) {
        replys.add(annotation);
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }


    public String toString() {
        return String.format("\nreviewer: \nuser:%s \ntext:%s", user, comment);
    }

    public String getIndex() {
        return index;
    }

    public void setIndex(String index) {
        this.index = index;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<Annotation> getReplys() {
        return replys;
    }

    public void setReplys(List<Annotation> replys) {
        this.replys = replys;
    }
}
